<?php

require_once 'Core/Db/Table/Abstract.php';
require_once 'Core/Db/Table/Row/Abstract.php';
require_once 'Core/Db/Table/Rowset/Abstract.php';

class Nld_Models_Acl_ToUsers_DbTable extends Core_Db_Table_Abstract
{
	public function init()
	{
		$this->_name 						= 'acl_to_users';
		$this->_primary 				= 'id';
		$this->_rowClass 				= 'Core_Db_Table_Row_Abstract';
		$this->_rowsetClass 		= 'Core_Db_Table_Rowset_Abstract';
		
		$this->_dependentTables = array(
		);

		$this->_referenceMap    = array(
			array(
				'columns'           => 'taskcode',
				'refTableClass'     => Nld_Models::getTableClass('Acl'),
				'refColumns'        => 'taskcode',
				'onDelete'          => self::CASCADE,
        'onUpdate'          => self::CASCADE,
			),
			array(
				'columns'           => 'username',
				'refTableClass'     => Nld_Models::getTableClass('Users'),
				'refColumns'        => 'username',
				'onDelete'          => self::CASCADE,
        'onUpdate'          => self::CASCADE,
			),
		);
	}
}